﻿using System.Windows.Input;

namespace Ebt.Mvvm
{
    /// <summary>
    /// Extends <see cref="ICommand"/> interface with event related features like the Handled property.
    /// </summary>
    public interface IEventCommand : ICommand
    {
        /// <summary>
        /// Gets or sets value indicating wheather the Handled property of event arguments must be set to true.
        /// You can change this property at any time: during initialization or command execution.
        /// Note: Not all events has the Handled property!
        /// </summary>
        bool PreventBubbling { get; set; }
    }
}